﻿@model SQLResident.Models.Alert

@{
    ViewBag.Title = "Edit";
}
<ul class="breadcrumb">
    <li><a href="@Url.Action("Index","Home")">Inicio</a> <span class="divider">/</span></li>
    <li><a href="@Url.Action("Index","Alert")">Alertas</a> <span class="divider">/</span></li>
    <li class="active">Editar</li>
</ul>
<div class="page-header">
    <h1>
        Alertas
        <small>Editar Elemento</small>
    </h1>
</div>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>

        @Html.HiddenFor(model => model.AlertId)

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <input class="btn" type="submit" value="Guardar" />
        
        <a class="btn btn-primary" href="@Url.Action("Index","Alert")"><i class="icon-white icon-arrow-left"></i> Volver a la lista</a>
    </fieldset>
}

@section js
{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}